/**
 * elancom Corporation copy right 2012 - 2015  
 *   
 * $Header: https://192.168.1.224/svn/elancom/product/elancom-platform/trunk/src/main/java/com/elancom/framework/dao/AssociationAlias.java 1034 2012-07-02 03:09:12Z lanzhouxue $
 * $Id: AssociationAlias.java 1034 2012-07-02 03:09:12Z lanzhouxue $
 * $Author: lanzhouxue $
 * $Date: 2012-07-02 11:09:12 +0800 (周一, 02 七月 2012) $
 * $Revision: 1034 $
 */
package com.elancom.framework.dao;

import com.elancom.framework.dao.enums.JoinMode;
import com.elancom.framework.dao.expression.Condition;

/**
 * @author elancom
 * @date Apr 15, 2012
 */
public class AssociationAlias {
	private String association;
	private String alias;
	private JoinMode joinMode = JoinMode.INNER_JOIN; // left way
	private Condition condition; // on

	public AssociationAlias(String association, String alias) {
		super();
		this.association = association;
		this.alias = alias;
	}

	public AssociationAlias(String association, String alias, JoinMode joinMode) {
		super();
		this.association = association;
		this.alias = alias;
		this.joinMode = joinMode;
	}

	public AssociationAlias(String association, String alias, JoinMode joinMode, Condition condition) {
		super();
		this.association = association;
		this.alias = alias;
		this.joinMode = joinMode;
		this.condition = condition;
	}

	public String getAlias() {
		return alias;
	}

	public String getAssociation() {
		return association;
	}

	public Condition getCondition() {
		return condition;
	}

	public JoinMode getJoinMode() {
		return joinMode;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public void setAssociation(String association) {
		this.association = association;
	}

	public void setCondition(Condition condition) {
		this.condition = condition;
	}

	public void setJoinMode(JoinMode joinMode) {
		this.joinMode = joinMode;
	}
}
